<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">

<ui:composition template="./masterpage/masterpage.xhtml">
	<ui:define name="title">Change password</ui:define>
	<ui:define name="content">
		<h:form>
			<h3>Transfer Information</h3>
			<div id="confirmPage">
				<table>
					<tr>
						<th colspan="2">Account Transfer Information</th>
						<th colspan="2">Received Account Information</th>
					</tr>
					<tr>
						<td>Account Number</td>
						<td><h:outputText
								value="#{transferMoneyManageBean.transferAcc.accountNumber}" /></td>
						<td>Customer ID</td>
						<td><h:outputText
								value="#{transferMoneyManageBean.receiveAcc.accountNumber}" /></td>
					</tr>
				
					
					<tr>
						<td>First Name</td>
						<td><h:outputText value="#{customerManageBean.cus.firstName}" /></td>
						<td>First Name</td>
						<td><h:outputText
								value="#{transferMoneyManageBean.receiveCustomer.firstName}" /></td>
					</tr>
					<tr>
						<td>Last Name</td>
						<td><h:outputText value="#{customerManageBean.cus.lastName}" /></td>
						<td>Last Name</td>
						<td><h:outputText
								value="#{transferMoneyManageBean.receiveCustomer.lastName}" /></td>
					</tr>
					<tr>
						<td>Mid Name</td>
						<td><h:outputText value="#{customerManageBean.cus.midName}" /></td>
						<td>Mid Name</td>
						<td><h:outputText
								value="#{transferMoneyManageBean.receiveCustomer.midName}" /></td>
					</tr>
					
					<tr>
						<td colspan="4" style="font-weight: bold;">Transfer amount: <h:outputText
								style="color:red;" value="#{transferMoneyManageBean.fund}" /></td>
					</tr>
					<tr>
						<td colspan="4" style="font-weight: bold;">Content: <h:outputText
								style="font-weight:bold;" value="#{transferMoneyManageBean.content}" /></td>
					</tr>
				</table>
				<br />
				<h:commandButton value="Confirm"
					action="#{transferMoneyManageBean.transfer}" />
				<h:commandButton value="Cancel"
					action="#{transferMoneyManageBean.cancel}" />

			</div>

		</h:form>
	</ui:define>
</ui:composition>
</html>